package com.xkdx.caipiao.presistence.user;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xkdx.caipiao.module.network.AbsModule;

public class MainInfoSetModule extends AbsModule {
	public boolean isSuccess = false;

	@Override
	public void parseData() throws Exception {
		try {
			backJson = (JSONArray) result;
			for (int i = 0; i < backJson.size(); i++) {
				jsonObj = (JSONObject) backJson.get(i);
				String sortOfAct = jsonObj.getString("Act");
				if (jsonObj.getString("Code").equals("0000")) {
					isSuccess = true;
				} else {
					isSuccess = false;
				}

			}
		} catch (Exception e) {
			isSuccess = false;
			throw e;
		}

	}

}
